package com.laopan.elasticsearch.bean.geo;

import com.laopan.elasticsearch.bean.geo.DistanceResult;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author laopan
 * @className QueryResult
 * @date 2021/4/20 14:48
 */

public class QueryGeoResult<T> {
    private long total;
    private List<DistanceResult<T>> data;

    public QueryGeoResult() {
    }

    public QueryGeoResult(long total, List<DistanceResult<T>> data) {
        this.total = total;
        this.data = data;
    }
    public long getTotal() {
        return total;
    }
    public void setTotal(long total) {
        this.total = total;
    }
    public List<DistanceResult<T>> getData() {
        return data;
    }

    public void setData(List<DistanceResult<T>> data) {
        this.data = data;
    }
}
